package fr.emse.tatiana.analysis.annotation;

import java.util.List;
import java.util.Vector;

import org.eclipse.core.resources.IFile;
import org.eclipse.jface.action.IAction;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IWorkbenchWindow;

import fr.emse.tatiana.analysis.annotation.actions.NewAnnotationAnalysisAction;
import fr.emse.tatiana.extensionprovider.IAnalysisActivator;

public class AnnotationAnalysisActivator implements IAnalysisActivator {

	public IEditorInput getInput(IFile file) {
		return new AnnotationAnalysisInput(file);
	}

	public List<IAction> getNewAnalysisActions(IWorkbenchWindow window,
			String navigationView) {
		List<IAction> ret = new Vector<IAction>();
		ret.add(new NewAnnotationAnalysisAction(window, "Annotation", AnnotationAnalysisEditor.ID, navigationView));
		return ret;
	}


}
